package com.cq.hd.member.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商户表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_merchant")
@ApiModel(value = "TbMerchantPo对象", description = "商户表")
public class TbMerchantPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "入驻邀请码")
    @TableField("settle_code")
    private String settleCode;

    @ApiModelProperty(value = "资金账户类型(1:自建资金账户 2:平台资金账户)")
    @TableField("financial_account_type")
    private Integer financialAccountType;

    @ApiModelProperty(value = "商户编号")
    @TableField("merchant_no")
    private String merchantNo;

    @ApiModelProperty(value = "汇付商户号")
    @TableField("hf_merchant_no")
    private String hfMerchantNo;

    @ApiModelProperty(value = "取现卡序列号")
    @TableField("withdrawal_card_no")
    private String withdrawalCardNo;

    @ApiModelProperty(value = "openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "微信号")
    @TableField("wechat")
    private String wechat;

    @ApiModelProperty(value = "系统管理员手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "登录密码")
    @TableField("login_pass")
    private String loginPass;

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "商品本金余额")
    @TableField("balance_amt")
    private BigDecimal balanceAmt;

    @ApiModelProperty(value = "冻结商品本金")
    @TableField("freeze_amt")
    private BigDecimal freezeAmt;

    @ApiModelProperty(value = "补贴余额")
    @TableField("subsidy_amt")
    private BigDecimal subsidyAmt;

    @ApiModelProperty(value = "冻结补贴金额")
    @TableField("freeze_subsidy_amt")
    private BigDecimal freezeSubsidyAmt;

    @ApiModelProperty(value = "商户名称")
    @TableField("merchant_name")
    private String merchantName;

    @ApiModelProperty(value = "商户简称")
    @TableField("merchant_short_name")
    private String merchantShortName;

    @ApiModelProperty(value = "公司类型(1：政府机构，2：国营企业，3：私营企业，4：外资企业，5：个体工商户，6：其它组织，7：事业单位)")
    @TableField("company_type")
    private Integer companyType;

    @ApiModelProperty(value = "所属行业code")
    @TableField("mcc")
    private String mcc;

    @ApiModelProperty(value = "所属行业名称")
    @TableField("mcc_name")
    private String mccName;

    @ApiModelProperty(value = "联系人姓名")
    @TableField("contact_name")
    private String contactName;

    @ApiModelProperty(value = "联系人手机号")
    @TableField("contact_mobile_no")
    private String contactMobileNo;

    @ApiModelProperty(value = "联系人电子邮箱")
    @TableField("contact_email")
    private String contactEmail;

    @ApiModelProperty(value = "客服电话")
    @TableField("customer_mobile")
    private String customerMobile;

    @ApiModelProperty(value = "客服微信号")
    @TableField("customer_wechat")
    private String customerWechat;

    @ApiModelProperty(value = "微信客服二维码")
    @TableField("customer_wechat_url")
    private String customerWechatUrl;

    @ApiModelProperty(value = "定位省份名称")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "定位市名称")
    @TableField("city_name")
    private String cityName;

    @ApiModelProperty(value = "定位区县名称")
    @TableField("county_name")
    private String countyName;

    @ApiModelProperty(value = "定位详细地址")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "最后登录ip")
    @TableField("last_login_ip")
    private String lastLoginIp;

    @ApiModelProperty(value = "状态(1-正常，2-已封禁)")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;


}
